package com.example.gank.api;

import com.example.gank.bean.AndroidGankBean;
import com.example.gank.bean.Result;
import com.example.gank.bean.WelfareGankBean;

import java.util.List;

import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

/**
 * Created by Nicholas on 2016/10/30.
 */

public interface ApiService {

    String BASE_URL = "http://gank.io/";

    @GET("api/data/Android/10/{page}")
    Observable<Result<List<AndroidGankBean>>> getAndroidGank(@Path("page") int page);

    @GET("api/data/福利/10/{page}")
    Observable<Result<List<WelfareGankBean>>> getWelfareGank(@Path("page") int page);

}

